home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / bsd / ufs / mount.h < prev    next >
C/C++ Source or Header  |  1995-02-14  |  2KB  |  63 lines

  1. /* 
  2.  * Mach Operating System
  3.  * Copyright (c) 1987 Carnegie-Mellon University
  4.  * All rights reserved.  The CMU software License Agreement specifies
  5.  * the terms and conditions for use and redistribution.
  6.  **********************************************************************
  7.  * HISTORY
  8.  * 25-Jan-89  Peter King (king) at NeXT
  9.  *    Cleaned out SUN_VFS compiler switches and old VICE hooks.
  10.  *    NFS 4.0 Changes.  Removed mount table; made it a linked list.
  11.  *
  12.  * 27-Aug-87  Peter King (king) at NeXT
  13.  *    SUN_VFS: Moved to ../ufs from ../h.
  14.  *
  15.  *  7-Feb-87  Avadis Tevanian (avie) at Carnegie-Mellon University
  16.  *    Merge VICE changes -- include vice.h and change to #if VICE.
  17.  *
  18.  *  2-Dec-86  Jay Kistler (jjk) at Carnegie-Mellon University
  19.  *    VICE:  added fields to mount entries to allow determination
  20.  *    of whether file system is handled by Venus or not.
  21.  *
  22.  **********************************************************************
  23.  */
  24.  
  25. /*
  26.  * Copyright (c) 1982, 1986 Regents of the University of California.
  27.  * All rights reserved.  The Berkeley software License Agreement
  28.  * specifies the terms and conditions for redistribution.
  29.  */
  30.  
  31. /* @(#)mount.h    2.2 88/06/09 4.0NFSSRC SMI;    from UCB 7.1 6/4/86    */
  32. /*                @(#) from SUN 2.10    */
  33.  
  34.  
  35. /*
  36.  * Mount structure.
  37.  * One allocated on every ufs mount.
  38.  * Used to find the super block.
  39.  */
  40. struct    mount {
  41.     struct vfs    *m_vfsp;    /* vfs structure for this filesystem */
  42.     dev_t        m_dev;        /* device mounted */
  43.     struct vnode    *m_devvp;    /* vnode for block device mounted */
  44.     struct buf    *m_bufp;    /* pointer to superblock */
  45.     struct inode    *m_qinod;    /* QUOTA: pointer to quota file */
  46.     u_short        m_qflags;    /* QUOTA: filesystem flags */
  47.     u_long        m_btimelimit;    /* QUOTA: block time limit */
  48.     u_long        m_ftimelimit;    /* QUOTA: file time limit */
  49.     struct mount    *m_nxt;        /* linked list of all mounts */
  50. };
  51. #ifdef KERNEL
  52. extern struct    mount *mounttab;
  53. /*
  54.  * Convert vfs ptr to mount ptr.
  55.  */
  56. #define VFSTOM(VFSP)    ((struct mount *)((VFSP)->vfs_data))
  57.  
  58. /*
  59.  * Operations
  60.  */
  61. struct mount *getmp();
  62. #endif
  63.